/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package result;

import calculator.TypeCalculator;
import hibernate.entityes.City;

/**
 *
 * @author eleven
 */
public class ResultCalculation {

    private double result = Double.NaN;
    private TypeCalculator type = null;
    private String fromCity = null;
    private String toCity = null;

    public ResultCalculation() {
    }

    public ResultCalculation(String fromCity,
            String toCity,
            TypeCalculator type,
            double result) {
        this.fromCity = fromCity;
        this.toCity = toCity;
        this.type = type;
        this.result = result;
    }

    public double getResult() {
        return result;
    }

    public TypeCalculator getType() {
        return type;
    }

    public String getFromCity() {
        return fromCity;
    }

    public String getToCity() {
        return toCity;
    }

    public void setResult(double result) {
        this.result = result;
    }

    public void setType(TypeCalculator type) {
        this.type = type;
    }

    public void setFromCity(String fromCity) {
        this.fromCity = fromCity;
    }

    public void setToCity(String toCity) {
        this.toCity = toCity;
    }
}
